home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
bbs_util
/
bcrc106.zip
/
SCANFILE.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-05-25
|
2KB
|
34 lines
REM SCANFILE.BAT for WILDCAT! 3.0+ BBS System!
REM NOTE! DELETE ALL COMMENTS AFTER THE ;
CD\WC30\WCWORK\NODE%WCNODEID% ;Change to NODE Directory
if exist scanfile.bad erase scanfile.bad ;ERASE Scanfile.bad if exists.
B-CRC %1 ;Run B-CRC on Uploaded File.
IF ERRORLEVEL 1 GOTO NOGOOD ;If FAILED GOTO NOGOOD Section
D: ;Change Drives
cd\new-B ;Change to B-BUILD Database DIR
B-BUILD %1 ;Run B-BUILD to add file to database
C: ;Go back to C Drive
CD\WC30\WCWORK\NODE%WCNODEID% ;Change back to Node Directory
GOTO GOOD ;GOTO GOOD Section and run CATSCAN
:NOGOOD ;This is the NOGOOD Section for
;Failed Files
COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
;Above -Copy Dummy file ALL.OK to Scanfile.Bad to Fail
;Upload in Wildcat! Make any file and call it ALL.OK
;if you do not have one. This in nothing but a 'puck' file.
GOTO FINALLY ;Go to Finally Section which exits batch file.
:GOOD ;GOOD Section - File is OK so lets run CATSCAN
CATSCAN %1
IF ERRORLEVEL 1 COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
:FINALLY ;Section to EXIT out of this Batch file.